FROM cantara/alpine-openjdk-jdk8
MAINTAINER xujianfeng@infohold.com.cn
VOLUME /tmp
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ARG meta=http://192.168.10.195:8080
ARG appName=test
ENV meta=${meta}
ENV appName=${appName}
ADD boot-admin.jar app.jar
RUN sh -c 'touch /app.jar'
RUN echo ${meta}
EXPOSE 58072
CMD java -Djava.security.egd=file:/dev/./urandom -Dapollo.meta=${meta} -Dapp.id=xfqb-${appName}-service -jar app.jar
